<html>
<head>
<link rel='stylesheet' type='text/css' media='screen' href='../css/default.css' />
<link rel='stylesheet' type='text/css' media='print' href='../css/print.css' />
<script type="text/javascript" src="../scripts/CalendarPopup.js"></script>
<script language="javascript">document.write(getCalendarStyles());</script>
<script language="javascript" src="../scripts/pnguin.js"></script>
<script language="JavaScript">

function office_names() {

var select = document.form.office_name;
select.options[0] = new Option("Choose One");
select.options[0].value = '';

select.options[1] = new Option("ISU");
select.options[1].value = "ISU";
select.options[2] = new Option("HUT");
select.options[2].value = "HUT";
}

function group_names() {
var offices_select = document.form.office_name;
var groups_select = document.form.group_name;
groups_select.options[0] = new Option("Choose One");
groups_select.options[0].value = '';

if (offices_select.options[offices_select.selectedIndex].value != '') {
  groups_select.length = 0;
}


if (offices_select.options[offices_select.selectedIndex].text == "ISU") {
groups_select.options[0] = new Option("...");
groups_select.options[0].value = '';
groups_select.options[1] = new Option("G1");
groups_select.options[1].value = "G1";
groups_select.options[2] = new Option("G2");
groups_select.options[2].value = "G2";
groups_select.options[3] = new Option("G3");
groups_select.options[3].value = "G3";
groups_select.options[4] = new Option("G4");
groups_select.options[4].value = "G4";
groups_select.options[5] = new Option("G5");
groups_select.options[5].value = "G5";
}

if (offices_select.options[offices_select.selectedIndex].text == "HUT") {
groups_select.options[0] = new Option("...");
groups_select.options[0].value = '';
groups_select.options[1] = new Option("G1");
groups_select.options[1].value = "G1";
groups_select.options[2] = new Option("G2");
groups_select.options[2].value = "G2";
groups_select.options[3] = new Option("G3");
groups_select.options[3].value = "G3";
groups_select.options[4] = new Option("G4");
groups_select.options[4].value = "G4";
groups_select.options[5] = new Option("G5");
groups_select.options[5].value = "G5";
groups_select.options[6] = new Option("G6");
groups_select.options[6].value = "G6";
groups_select.options[7] = new Option("G7");
groups_select.options[7].value = "G7";
groups_select.options[8] = new Option("G8");
groups_select.options[8].value = "G8";
groups_select.options[9] = new Option("G9");
groups_select.options[9].value = "G9";
groups_select.options[10] = new Option("G11");
groups_select.options[10].value = "G11";
}

if (groups_select.options[groups_select.selectedIndex].value != '') {
  groups_select.length = 0;
}
}

</script>
</head>
<body onload='office_names();'>
<table class=header width=100% border=0 cellpadding=0 cellspacing=1>
  <tr><td align=left><a href='../index.php'><img border=0 src='../images/logos/phptimeclock.png'></a></td>

    <td colspan=2 scope=col align=right valign=middle><a href='http://www.historychannel.com/tdih' style='color:#000000;font-family:Tahoma;font-size:10pt;
        text-decoration:none;'>May 6, 2011&nbsp;&nbsp;</a></td></tr>
</table>
<table class=topmain_row_color width=100% border=0 cellpadding=0 cellspacing=0>
  <tr>
    <td align=left valign=middle width=10 style='padding-left:12px;'><img src='../images/icons/user_orange.png' border='0'></td>
    <td align=left valign=middle style='color:#000000;font-family:Tahoma;font-size:10pt;padding-left:8px;'>logged in as: admin</td>
    <td align=right valign=middle><img src='../images/icons/house.png' border='0'>&nbsp;&nbsp;</td>
    <td align=right valign=middle width=10><a href='../index.php' style='color:#000000;font-family:Tahoma;font-size:10pt;text-decoration:none;'>
        Home&nbsp;&nbsp;</a></td>

    <td align=right valign=middle width=23><img src='../images/icons/bricks.png' border='0'>&nbsp;&nbsp;</td>
    <td align=right valign=middle width=10><a href='../login.php' style='color:#000000;font-family:Tahoma;font-size:10pt;text-decoration:none;'>
        Administration&nbsp;&nbsp;</a></td>
    <td align=right valign=middle width=23><img src='../images/icons/report.png' border='0'>&nbsp;&nbsp;</td>
    <td align=right valign=middle width=10><a href='../reports/index.php' style='color:#000000;font-family:Tahoma;font-size:10pt;text-decoration:none;'>
        Reports&nbsp;&nbsp;</a></td>
    <td align=right valign=middle width=20><img src='../images/icons/arrow_rotate_clockwise.png' border='0'>&nbsp;</td>
    <td align=right valign=middle width=10><a href='../logout.php' style='color:#000000;font-family:Tahoma;font-size:10pt;text-decoration:none;'>

        Logout&nbsp;&nbsp;</a></td></tr>
</table>
<title>PHP Timeclock 1.04 - Create User</title>
<table width=100% height=89% border=0 cellpadding=0 cellspacing=1>
  <tr valign=top>
    <td class=left_main width=180 align=left scope=col>
      <table class=hide width=100% border=0 cellpadding=1 cellspacing=0>
        <tr><td class=left_rows height=11></td></tr>
        <tr><td class=left_rows_headings height=18 valign=middle>Users</td></tr>

        <tr><td class=left_rows height=18 align=left valign=middle><img src='../images/icons/user.png' alt='User Summary' />&nbsp;&nbsp;
                <a class=admin_headings href='useradmin.php'>User Summary</a></td></tr>
        <tr><td class=current_left_rows height=18 align=left valign=middle><img src='../images/icons/user_add.png' alt='Create New User' />
                &nbsp;&nbsp;<a class=admin_headings href='usercreate.php'>Create New User</a></td></tr>
        <tr><td class=left_rows height=18 align=left valign=middle><img src='../images/icons/magnifier.png' alt='User Search' />&nbsp;&nbsp;
                <a class=admin_headings href='usersearch.php'>User Search</a></td></tr>
        <tr><td class=left_rows height=33></td></tr>

        <tr><td class=left_rows_headings height=18 valign=middle>Offices</td></tr>
        <tr><td class=left_rows height=18 align=left valign=middle><img src='../images/icons/brick.png' alt='Office Summary' />&nbsp;&nbsp;
                <a class=admin_headings href='officeadmin.php'>Office Summary</a></td></tr>
        <tr><td class=left_rows height=18 align=left valign=middle><img src='../images/icons/brick_add.png' alt='Create New Office' />&nbsp;&nbsp;
                <a class=admin_headings href='officecreate.php'>Create New Office</a></td></tr>
        <tr><td class=left_rows height=33></td></tr>
        <tr><td class=left_rows_headings height=18 valign=middle>Groups</td></tr>

        <tr><td class=left_rows height=18 align=left valign=middle><img src='../images/icons/group.png' alt='Group Summary' />&nbsp;&nbsp;
                <a class=admin_headings href='groupadmin.php'>Group Summary</a></td></tr>
        <tr><td class=left_rows height=18 align=left valign=middle><img src='../images/icons/group_add.png' alt='Create New Group' />&nbsp;&nbsp;
                <a class=admin_headings href='groupcreate.php'>Create New Group</a></td></tr>
        <tr><td class=left_rows height=33></td></tr>
        <tr><td class=left_rows_headings height=18 valign=middle colspan=2>In/Out Status</td></tr>
        <tr><td class=left_rows height=18 align=left valign=middle><img src='../images/icons/application.png' alt='Status Summary' />

                &nbsp;&nbsp;<a class=admin_headings href='statusadmin.php'>Status Summary</a></td></tr>
        <tr><td class=left_rows height=18 align=left valign=middle><img src='../images/icons/application_add.png' alt='Create Status' />&nbsp;&nbsp;
                <a class=admin_headings href='statuscreate.php'>Create Status</a></td></tr>
        <tr><td class=left_rows height=33></td></tr>
        <tr><td class=left_rows_headings height=18 valign=middle colspan=2>Miscellaneous</td></tr>
        <tr><td class=left_rows height=18 align=left valign=middle><img src='../images/icons/clock.png' alt='Add/Edit/Delete Time' />
                &nbsp;&nbsp;<a class=admin_headings href='timeadmin.php'>Add/Edit/Delete Time</a></td></tr>

        <tr><td class=left_rows height=18 align=left valign=middle><img src='../images/icons/application_edit.png' alt='Edit System Settings' />
                &nbsp;&nbsp;<a class=admin_headings href='sysedit.php'>Edit System Settings</a></td></tr>
        <tr><td class=left_rows height=18 align=left valign=middle><img src='../images/icons/database_go.png'
                alt='Upgrade Database' />&nbsp;&nbsp;&nbsp;<a class=admin_headings href='dbupgrade.php'>Upgrade Database</a></td></tr>
      </table></td>
    <td align=left class=right_main scope=col>
      <table width=100% height=100% border=0 cellpadding=10 cellspacing=1>
        <tr class=right_main_text>
          <td valign=top>

            <br />
            <form name='form' action='/timeclock-1.04/admin/usercreate.php' method='post'>
            <table align=center class=table_border width=60% border=0 cellpadding=3 cellspacing=0>
              <tr>
                <th class=rightside_heading nowrap halign=left colspan=3><img src='../images/icons/user_add.png' />&nbsp;&nbsp;&nbsp;Create User
                </th></tr>
              <tr><td height=15></td></tr>
              <tr><td class=table_rows height=25 width=20% style='padding-left:32px;' nowrap>Username:</td><td colspan=2 width=80% 
                      style='color:red;font-family:Tahoma;font-size:10px;padding-left:20px;'>
                      <input type='text' size='25' maxlength='50' name='post_username'>&nbsp;*</td></tr>

              <tr><td class=table_rows height=25 width=20% style='padding-left:32px;' nowrap>Display Name:</td><td colspan=2 width=80%
                      style='color:red;font-family:Tahoma;font-size:10px;padding-left:20px;'>
                      <input type='text' size='25' maxlength='50' name='display_name'>&nbsp;*</td></tr>
              <tr><td class=table_rows height=25 width=20% style='padding-left:32px;' nowrap>Password:</td><td colspan=2 width=80% 
                      style='padding-left:20px;'><input type='password' size='25' maxlength='25' name='password'></td></tr>
              <tr><td class=table_rows height=25 width=20% style='padding-left:32px;' nowrap>Confirm Password:</td><td colspan=2 width=80% 
                      style='padding-left:20px;'>
                      <input type='password' size='25' maxlength='25' name='confirm_password'></td></tr>
              <tr><td class=table_rows height=25 width=20% style='padding-left:32px;' nowrap>Email Address:</td><td colspan=2 width=80%
                      style='color:red;font-family:Tahoma;font-size:10px;padding-left:20px;'>

                      <input type='text' size='25' maxlength='75' name='email_addy'>&nbsp;*</td></tr>
              <tr><td class=table_rows height=25 width=20% style='padding-left:32px;' nowrap>Office:</td><td colspan=2 width=80%
                      style='color:red;font-family:Tahoma;font-size:10px;padding-left:20px;'>
                      <select name='office_name' onchange='group_names();'>
                      </select>&nbsp;*</td></tr>
              <tr><td class=table_rows height=25 width=20% style='padding-left:32px;' nowrap>Group:</td><td colspan=2 width=80%
                      style='color:red;font-family:Tahoma;font-size:10px;padding-left:20px;'>
                      <select name='group_name'>
                      </select>&nbsp;*</td></tr>

              <tr><td class=table_rows height=25 width=20% style='padding-left:32px;' nowrap>Sys Admin User?</td>
                <td class=table_rows align=left width=80% style='padding-left:20px;'><input type='radio' name='admin_perms' value='1'>&nbsp;Yes
                    <input type='radio' name='admin_perms' value='0' checked>&nbsp;No</td></tr>
              <tr><td class=table_rows height=25 width=20% style='padding-left:32px;' nowrap>Time Admin User?</td>
                <td class=table_rows align=left width=80% style='padding-left:20px;'><input type='radio' name='time_admin_perms' value='1'>&nbsp;Yes
                    <input type='radio' name='time_admin_perms' value='0' checked>&nbsp;No</td></tr>
              <tr><td class=table_rows height=25 width=20% style='padding-left:32px;' nowrap>Reports User?</td>

                <td class=table_rows align=left width=80% style='padding-left:20px;'><input type='radio' name='reports_perms' value='1'>&nbsp;Yes
                    <input type='radio' name='reports_perms' value='0' checked>&nbsp;No</td></tr>
              <tr><td class=table_rows height=25 width=20% style='padding-left:32px;' nowrap>User Account Disabled?</td>
                <td class=table_rows align=left width=80% style='padding-left:20px;'><input type='radio' name='disabled' value='1'>&nbsp;Yes
                    <input type='radio' name='disabled' value='0' checked>&nbsp;No</td></tr>
              <tr><td class=table_rows align=right colspan=3 style='color:red;font-family:Tahoma;font-size:10px;'>*&nbsp;required&nbsp;</td></tr>
            </table>

            <table align=center width=60% border=0 cellpadding=0 cellspacing=3>
              <tr><td height=40>&nbsp;</td></tr>
              <tr><td width=30><input type='image' name='submit' value='Create User' align='middle' 
                      src='../images/buttons/next_button.png'></td><td><a href='useradmin.php'><img src='../images/buttons/cancel_button.png' 
                      border='0'></td></tr></table></form></td></tr>
        <tr class=hide><td height=4% class=misc_items align=right valign=middle scope=row colspan=2>Powered by&nbsp;<a class=footer_links 
            href='http://httpd.apache.org/'>Apache</a>&nbsp;&#177<a class=footer_links href='http://mysql.org'>&nbsp;MySql</a> 
            &#177<a class=footer_links href='http://php.net'>&nbsp;PHP</a>&nbsp;&#8226;<a class=footer_links href='http://timeclock.sourceforge.net'>&nbsp;PHP Timeclock&nbsp;1.04</a></td></tr>
      </table>

    </td>
  </tr>
</table>
</body>
</html>
